package org.example.me.queue;

import lombok.Data;
import org.example.me.entity.ExcelLog;

/**
 * 导出任务实体类
 * 用于在阻塞队列中传递导出任务信息
 */
@Data
public class ExportTask {

    /**
     * Excel日志信息
     */
    private ExcelLog excelLog;

    /**
     * 任务ID，用于避免重复消费
     */
    private String taskId;

    public ExportTask() {
    }

    public ExportTask(ExcelLog excelLog) {
        this.excelLog = excelLog;
        this.taskId = excelLog.getId();
    }

    public ExportTask(ExcelLog excelLog, String taskId) {
        this.excelLog = excelLog;
        this.taskId = taskId;
    }
}